home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
comm
/
ntmler8b.zip
/
CGI.H
< prev
next >
Wrap
C/C++ Source or Header
|
1996-09-12
|
585b
|
32 lines
#include <windows.h>
const int MAX_CONTENT_LENGTH = 2048;
class CCGI
{
private:
char *m_method,
*m_name,
*m_value;
char m_content[MAX_CONTENT_LENGTH];
protected:
int is_hex(char hex);
void url_decode();
public:
CCGI();
BOOL Initialize(const char*);
char* FindData(char* form_variable, BOOL REQUIRED);
char* GetContent() {return m_content;};
void SetContent(char* );
BOOL ParamExist(char[]);
};
void PrintHeader(const char* title);
void PrintTrailer(const char* trailer);
void err(char[]);
char* stristr(char*, const char*);